<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: YIJIE
  Date: 2016/8/25
  Time: 22:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="../inc/top.jsp"%>
<%
    TeacherBean teacherBean = (TeacherBean) request.getAttribute("ateacher");
%>
<link href="<%=ctxpath%>/static/teacher/css/changeInfo.css" rel="stylesheet" />
<script src="<%=ctxpath%>/static/teacher/js/changeInfo.js"></script>
<form name="teacherInfo" method="post" id="teacherInfo" action="<%=ctxpath%>/TeacherController/changeInfo.wm">
<div class="col-xs-12">
<table class="table table-bordered">
    <input name="teacherid" type="hidden" value="${ateacher.teacher_id}" />
    <thead><h3>教师信息修改页面</h3></thead>
    <tr>
        <th class="title">姓名(<span class="colorred">*</span>)</th>
        <td><input type="text" id="teachername" name="teachername" value="<c:out value="${ateacher.teacher_name}"/>" /></td>
        <th class="title">性别</th>
        <td>
            <select width="100px" id="teachersex" name="teachersex">

                <%
                    if(teacherBean.getTeacher_sex()!=null&&teacherBean.getTeacher_sex().equals("男")){
                %>
                <option selected>男</option>
                <option>女</option>
                <%
                }else{
                %>
                <option selected>女</option>
                <option>男</option>
                <%
                    }
                %>
            </select>
        </td>
    </tr>
    <tr>
        <th class="title">学院</th>
        <td><input type="text"  id="teachercollege" name="teachercollege" value="<c:out value="${ateacher.teacher_college}"/>" /></td>
        <th class="title">系/所(<span class="colorred">*</span>)</th>
        <td><input type="text" id="teacherdepartment" name="teacherdepartment" value="<c:out value="${ateacher.teacher_department}"/>" /></td>
    </tr>
    <tr>
        <th class="title">E-mail(<span class="colorred">*</span>)</th>
        <td><input type="text" id="teacheremail" name="teacheremail" value="<c:out value="${ateacher.teacher_email}"/>" /></td>
        <th class="title">学历</th>
        <td><input type="text" id="teachereducation" name="teachereducation" value="<c:out value="${ateacher.teacher_education}"/>" /></td>
    </tr>
    <tr>
        <th class="title">职称</th>
        <td><input type="text" id="teachertitle" name="teachertitle" value="<c:out value="${ateacher.teacher_title}"/>" /></td>
    </tr>
    <tr>
        <th colspan="4">学科方向</th>
    </tr>
    <tr>
        <td colspan="4"><textarea rows="3" type="text" id="teachersubject" name="teachersubject" ><c:out value="${ateacher.teacher_subject}"/></textarea></td>
    </tr>
    <tr>
        <th colspan="4">教师简介</th>
    </tr>
    <tr>
        <td colspan="4"><textarea rows="4" type="text" id="teacherintrodution" name="teacherintrodution" ><c:out value="${ateacher.teacher_introdution}"/></textarea></td>
    </tr>
    <tr>
        <td colspan="4" style="text-align:center">
            <button class="btn btn-primary" type="button" id="save" name="save">保存</button >
            &nbsp;&nbsp;&nbsp;&nbsp;
            <a class="btn btn-info" href="<%=ctxpath%>/teacher/homePage.jsp">返回</a></td>
    </tr>
    <tfoot><span class="colorred">*信息为必填信息</span></tfoot>
</table>
</div>
</form>
<script>
    $(function () {
        $("#toptitle").html("我的信息");
    })
</script>
<%@include file="../inc/bottom.jsp"%>

